package com.zh.spring.rabbit;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 描述：com.zh.spring.rabbit
 *
 * @author 80002023
 *         2017/1/3.
 * @version 1.0
 * @since 1.8
 */
@Component
@RabbitListener(queues = {"hello"})
public class Receiver {

    @RabbitHandler
    public void process(String content) {
        System.out.println("Receiver: " + content);
    }
}
